package caiwei.android_study_sample.activity;

import caiwei.android_study_sample.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Android08DataPersistence extends Activity
{
	private TextView mTextView;
	private Button mButton;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.showcontent);
		mTextView = (TextView) findViewById(R.id.textViewcontent);
		mButton = (Button) findViewById(R.id.showcontent_button);
		mTextView.setText(R.string.android08_datapersistence);
		mButton.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v)
			{
				Intent _Intent = new Intent(Android08DataPersistence.this,
						Android08DataPersistenceSampleList.class);
				startActivity(_Intent);
			}
		});
	}
}
